Skip to content

docs(spec,qa): OS_PROTOCOL_INCOMPATIBLE ledger comment and manifest-install-contract acceptance[1] name when migrateCommand is absent - #34026

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/area-A5-33618
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/area-A5-33618

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #33618

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:两处文字,不动代码。错误码台账里 OS_PROTOCOL_INCOMPATIBLE 那一行的注释,以及测试清单 platform-core.manifest-install-contract 的 acceptance[1](rev 10 → 11)。两处都改为与已发布的拒绝一致:迁移命令只在迁移下限(16)到运行时主版本之间给出,低于下限或高于运行时都不给。
  • 为什么改:fix(metadata-core): the protocol refusal prescribes no migrate meta --from below the migration floor #33466 已让低于下限的包不再收到注定失败的 migrate meta --from N,但这两处文字仍写着"总会给迁移命令",照着读的 agent 和 QA 会得出错误预期。
  • 风险与回滚:只是注释和 QA 清单文字,运行行为不变;spec 的 *.zod.ts 随包发布,所以带一个 patch changeset。回滚即还原本 PR。
  • 先看:① packages/spec/src/api/error-code-ledger.zod.ts 的 OS_PROTOCOL_INCOMPATIBLE 注释;② docs/qa/platform-checklist/areas/platform-core.json 该项 acceptance[1] 与新增 history 行;③ changeset。
  • 两分钟验证:node scripts/check-platform-checklist.mjs,预期退出码 0 且打印 OK。
  • 需要你做的:无,席位落地。

What changes

  • packages/spec/src/api/error-code-ledger.zod.ts, the comment on the OS_PROTOCOL_INCOMPATIBLE row. The comment said the remedy is objectstack migrate meta --from N, and listed migrateCommand among the error.details members unconditionally. It now states the shipped shape, read from checkProtocolCompat (packages/metadata-core/src/protocol-handshake.ts) at base 895783a1e8:

    This is a line comment, not a .describe(), so no generator reads it. The row and the code are unchanged.

  • docs/qa/platform-checklist/areas/platform-core.json, item platform-core.manifest-install-contract.

    • acceptance[1] now scopes migrateCommand to the floor. At or above the floor and at or below the runtime, the refusal carries --from TARGET. Below the floor, it carries none, and the message names a build for this runtime's protocol, or reaching protocol 16 by another path and then --from 16. The clause also says every refusal carries targetMajor.
    • Revision 10 → 11, with a history row citing runtime/spec: OS_PROTOCOL_INCOMPATIBLE text leftovers after #33466 (ledger comment 'when present', checklist acceptance[1]) #33618.
    • The steps, the verify text and the other clauses are unchanged. On an 18 runtime the ^(RT-1) probe targets 17, which is above the floor.
  • .changeset/33618-protocol-incompatible-ledger-comment.md: a @objectstack/spec patch. src/**/*.zod.ts is in the spec's files[], so the comment ships.

Tests

No behaviour changed, so there is no new test and no ablation. Both diffs are text, and os-dev.md does not ablate docs or comments.

  • node scripts/check-platform-checklist.mjs: exit 0, OK — 16 areas, 429 items.
  • A semantic diff parsed platform-core.json at origin/main and at HEAD. Item order is unchanged (47 items). Only platform-core.manifest-install-contract differs, and only in acceptance (index 1 alone), revision (10 → 11) and history (10 → 11 rows).

Acceptance notes

Verification

All readings are at head dcda950ef9, after the merge of origin/main 03b4d2d1f4. The spec, formula and lint closure was rebuilt under the verify lock first.

Derived gate families: 89 derived, 87 exit 0, 2 NOT MEASURED (exit 3), 0 UNRUN
node scripts/pm/dispatch-gates.mjs --ran ran-head.list   (exit 0)
Run reconciliation — 89 derived, 87 run, 2 NOT-MEASURED, 0 UNRUN.
pnpm check:lean-entry-closure    :: exit 3   PREREQUISITE NOT MET (packages/objectql/dist absent; the gate loads built entries)
pnpm check:dual-build-cjs-loads  :: exit 3   PREREQUISITE NOT MET (needs a whole-workspace build)

Neither gate reads a source comment or a checklist file. Both are left to CI's Lint and Repo Gates.

spec package, checklist validator, lint
pnpm --filter @objectstack/spec build && check:generated   VERDICT command-exit 0 · All 14 generated artifacts are up to date
pnpm --filter @objectstack/spec test        Test Files 842 passed (842) · Tests 26956 passed | 1 todo   (VERDICT command-exit 0, at 1ca1a700b3)
pnpm --filter @objectstack/spec typecheck   exit 0 (tsc --noEmit, check:scripts-typecheck, check:test-typecheck OK)
node scripts/check-platform-checklist.mjs   exit 0 · OK — 16 areas, 429 items
npx eslint --no-inline-config packages/spec/src/api/error-code-ledger.zod.ts   exit 0

The merge brought no change to either file, so the spec test and typecheck reading at 1ca1a70 holds for these paths. CI's Test Core and TypeScript Type Check rerun them on the head.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5

…eCommand is absent

The row comment said the remedy is `objectstack migrate meta --from N` and
listed migrateCommand among the details unconditionally. The shipped refusal
leaves it out ahead of the runtime and below the migrate-meta support floor
(16), and carries targetMajor on every arm.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
…Command to the migrate-meta floor

Below the support floor (16) the shipped refusal carries no migrateCommand
and names the two remedies in its message; every refusal carries targetMajor.
Revision 10 -> 11 with a history row.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 2 documentable anchor(s).

18 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json b4eea885058321e56776ab2b690e4f35e29b7a0c.

⛔ 9 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see

Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json b4eea885058321e56776ab2b690e4f35e29b7a0c → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 82d9b318a2767a9e7c2224e7c85de9919c63321e — the merge of head 1c403d0d7fb17e10a6c8de34eb48726e00698240 into base b4eea885058321e56776ab2b690e4f35e29b7a0c, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 82d9b318a2767a9e7c2224e7c85de9919c63321e && git checkout 82d9b318a2767a9e7c2224e7c85de9919c63321e
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b4eea885058321e56776ab2b690e4f35e29b7a0c 1c403d0d7fb17e10a6c8de34eb48726e00698240 && git checkout -B drift-repro b4eea885058321e56776ab2b690e4f35e29b7a0c && git merge --no-ff 1c403d0d7fb17e10a6c8de34eb48726e00698240

node scripts/docs-audit/affected-docs.mjs --json b4eea885058321e56776ab2b690e4f35e29b7a0c

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs b4eea885058321e56776ab2b690e4f35e29b7a0c → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Request: review · PR #34026 · area S3 · Fixes #33618 · head dcda950 (green, final)

Ordinary ACCEPT read, plus a CONTRACT_REVIEW_TIER record, because packages/spec/src/api/error-code-ledger.zod.ts is a spec-source face (the change is a comment only). Declared Clause-②: no, Metadata-protocol: none. Report: os-dev report 6897707944 on #33618.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Review claim (review-a, S3) · head dcda950 · 2026-11-15T17:07Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: dcda950ef927df06ce069bcdff6cd984bca4a70f
Local-runs: none
Scope: packages/spec/src/api/error-code-ledger.zod.ts + none

PR #34026 (card #33618), net diff against merge base 03b4d2d1f4. Three files: the ledger (hits), docs/qa/platform-checklist/areas/platform-core.json and one changeset. No file in the diff implements or enforces the ledger comment, so the + side is empty. The code the comment describes (packages/metadata-core/src/protocol-handshake.ts, packages/spec/src/migrations/registry.ts.template) is outside the diff: read at the head, not reviewed. The checklist file and the changeset body are the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept-set: unchanged. Right. All 18 changed lines of the ledger file (+14 −4) are // line comments above the 'OS_PROTOCOL_INCOMPATIBLE' row. The row, its package key and its neighbours are untouched. No schema, no .describe(), no type, no export moves.
  • Public surface: comment bytes only. Right. packages/spec/package.json files[] lists src/**/*.zod.ts, so the comment ships in the tarball. Nothing a consumer can import or validate against changes.
  • Generated output: none owed. Right. No generated file is in the diff, and the head's Lint & Repo Gates, Lint · docs & code guards, Lint · repo & tooling gates, Spec property liveness, Type Check · source gates, Test Core (8/8) and TypeScript Type Check all concluded success. No check-run on the head failed; the skipped ones are opt-in, queue-only or UI-path runs.
  • Runtime behaviour: unchanged. Right. protocol-handshake.ts is not in the diff.

② Semver level

.changeset/33618-protocol-incompatible-ledger-comment.md declares @objectstack/spec: patch. That matches what the diff publishes: changed bytes in a shipped source file, with no surface change. Check Changeset concluded success.

Clause-②: no. Held. The PR body, the changeset and the claim all say no, and the tree agrees: a comment adds, removes and narrows nothing. Metadata-protocol: none is right for the same reason.

③ Boundary flags

④ Design judgment

packages/spec/src/api/error-code-ledger.zod.ts: every sentence of the rewritten comment, read against protocol-handshake.ts and registry.ts.template at the head.

Holds:

  • "Answered 422": ProtocolIncompatibleError.status and .statusCode are 422.
  • "requiredRange, rangeSource, protocolVersion and targetMajor in error.details on every refusal": protocolIncompatibleAnswer (lines 248 to 254) sets all four unconditionally. targetMajor may be null, but the member is always there.
  • "--from N for a targetMajor from the migrate-meta support floor up to the runtime's major": lines 527 to 540. The command is withheld when targetMajor is above runtimeMajor or below MIGRATE_META_SUPPORT_FLOOR, so both ends are inclusive, as written.
  • "(MIGRATION_SUPPORT_FLOOR, 16, ADR-0087 D3)": the spec constant is 16 (registry.ts.template), the handshake's private copy MIGRATE_META_SUPPORT_FLOOR is 16, and protocol-handshake.test.ts (line 590) holds the two equal. Naming the spec's constant in the spec's own file is the right choice.
  • "the bare objectstack migrate meta when targetMajor is null": line 540.
  • "absent when AHEAD (package install: OS_PROTOCOL_INCOMPATIBLE for a package declaring a NEWER protocol major prescribes "migrate meta --from 19", which cannot apply #26480), where the message names upgrading the runtime or installing a build for this runtime's protocol": lines 541 to 543.
  • "absent BELOW the floor (fix(metadata-core): the protocol refusal prescribes no migrate meta --from below the migration floor #33466), where --from N refuses and the message names installing a build for this runtime's protocol, or bringing the metadata to the floor by another path and then running --from 16": lines 544 to 549, and MigrationFloorError per the registry's jsdoc.
  • Absent means left out, never undefined: line 253 and line 570. The comment's "absent" is exact.
  • The card's Expected item 1 (name when the command is absent and what the refusal carries instead) is met, and met with the code's facts instead of the card's loose "carries targetMajor instead".

Tried to break it: a || union with one alternative below the floor (^15 || ^17 on an 18 runtime) targets 15 and gets no command, which the comment's targetMajor wording covers; a null target gets the bare command, which the comment says; an empty span yields null, same arm. No arm of the code falls outside the comment's four cases.

Findings:

  1. should-fix. "the remedy is a change to the package, not to the environment" is false for the AHEAD arm, and the same comment contradicts it nine lines later. The sentence is new in this diff (it replaces "the remedy is a body change (objectstack migrate meta --from N)"). For a target ahead of the runtime, the first remedy the message names is Upgrade the runtime to protocol N (line 543), which is a change to the environment and not to the package; the comment itself then says "the message names upgrading the runtime". A reader is told in one sentence that no environment change resolves the refusal and in another that one does. The sentence is also the comment's stated ground for 422 over 409, so it is the one sentence an agent reads to decide whether resubmitting can ever succeed. The handshake's own jsdoc (lines 151 to 154) words the same rationale without the absolute: the remedy is to change the body, or for a package ahead of the runtime a build of it for this protocol, and 409 is for environment STATE where the same body could succeed later. Fix: drop "not to the environment" and say what the 422 ground really is, for example "the caller's remedy is to send a different body (migrated metadata, or a build for this runtime's protocol); the one remedy outside the body, a runtime upgrade for a package AHEAD, is a deployment change, not environment state". The fix is in the ledger file, so it moves the head and earns a delta review.
  2. nit. "present only when the chain can replay the package's metadata" overstates the null arm. When targetMajor is not determinable the code offers the bare command without knowing the chain can replay anything; the diagnostic's own jsdoc says "or is not determinable". The enumerated cases after the colon are right, so no reader is misled about the wire.
  3. nit. The literal 16 appears twice (..., 16, ADR-0087 D3 and --from 16) with nothing to red it when the floor moves. The handshake's copy is pinned by a test; this comment is not. Naming MIGRATION_SUPPORT_FLOOR beside it limits the harm. Accepted deviation or a follow-up, the dev's choice.

No must-fix. Finding 1 does not change the wire, the accept-set or the migrateCommand contract the card is about, so it does not fail the head; it does earn a delta review of its fix.

Implemented-by: claude/area-A5-33618
Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Review — PASS (should-fix owed before landing)

Head-sha: dcda950ef927df06ce069bcdff6cd984bca4a70f
Reviewer: review-a (areas S1 + S3) · read 2026-11-15T17:10Z · diff read against the merge's main parent 03b4d2d1 (3 files, +32/−6, matches the PR files list)
Implemented-by: session_01QsR2jTEivi2wogPpeo3xd5 (area S3 dispatch) · Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM; the contract face by an isolated sub-agent at CONTRACT_REVIEW_TIER

Contract face: packages/spec/src/api/error-code-ledger.zod.ts is a packages/spec/src path, so the review is owed at CONTRACT_REVIEW_TIER. Its record is comment 6898175107 (PASS, Local-runs: none). It carries one should-fix, which earns a delta review. This verdict covers the rest of the diff at TIER_DEFAULT.

Should-fix (from the record; delta review after the fix)

  1. The ledger comment's new sentence "the remedy is a change to the package, not to the environment" is false for the AHEAD arm. There, the first remedy the message names is "Upgrade the runtime to protocol N" (checkProtocolCompat), and the same comment says so nine lines later. Reword the 422 ground without the absolute, as the handshake's own jsdoc does: the remedy is a different body, and a runtime upgrade for a package ahead of the runtime is a deployment change, not environment state. The fix moves the head, so hold the landing until the delta PASS.

What holds

  • The checklist clause. I read platform-core.manifest-install-contract acceptance[1] against checkProtocolCompat at the head. With the floor at 16 (MIGRATE_META_SUPPORT_FLOOR, held equal to the spec's MIGRATION_SUPPORT_FLOOR), both ends of the --from range are inclusive, as written. The below-floor message names both remedies the clause gives. The ahead arm and the "every refusal carries targetMajor" sentence also match: the code sets it unconditionally and protocolIncompatibleAnswer copies it. The steps and the verify text are unchanged, and the ^(RT-1) probe still lands above the floor on an 18 runtime. Revision 10 → 11 has a history row. The net file diff touches this one item only.
  • Changeset. @objectstack/spec patch, because the comment ships in src/**/*.zod.ts. Clause-②: no / Metadata-protocol: none hold.
  • Tests. No behaviour changed, so no test and no ablation are owed.

Nits (no re-review needed)

  1. The clause does not name the null-target arm (the bare objectstack migrate meta). None of the steps probes it, so nothing fails. Fold it in if you touch the clause again.
  2. The record notes that the final report rests its two answers on "the coordinator's two rulings", but card runtime/spec: OS_PROTOCOL_INCOMPATIBLE text leftovers after #33466 (ledger comment 'when present', checklist acceptance[1]) #33618 has no ruling comment. Both answers hold against the tree. If they came from a relay, cite the relay on the card.
  3. ADR-0087 lines 116, 191 and 536 still teach --from 10 / --from N below the floor. That is governed text and out of this PR's scope. A card for the skills lane is owed from the seat, under "Acceptance notes".

Gates: at review time 57 success, 11 skipped, none red, so every check is green.

…ound without the absolute

The remedy is a different body, or for a package ahead of the runtime a
runtime upgrade, which is a deployment change, not environment state.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Request: delta review · PR #34026 · area S3 · Fixes #33618 · head 27ef04d (green, final)

The delta is dcda950..27ef04d, the should-fix from 6898184206. One comment block in error-code-ledger.zod.ts changes: the 422 ground now says the remedy is a different body, or, for a package ahead of the runtime, a runtime upgrade, which is a deployment change, not environment state. 922eb56 made the reword; 27ef04d only rewraps the lines. Nits 1 and 2 were not taken. ADR-0087 lines → #34028. Delta note: 6898328017 on #33618.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Contract review — delta

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 27ef04d0d25349fdfef0a9a8c2fd1cca2adb882a
Local-runs: none
Scope: packages/spec/src/api/error-code-ledger.zod.ts + none
Prior record: 6898175107

Delta dcda950ef9..27ef04d0d2 (two commits, 922eb56d and 27ef04d0), read with git diff and a word-level diff. One file, +8 −5, all // lines above the 'OS_PROTOCOL_INCOMPATIBLE' row. packages/metadata-core/src/protocol-handshake.ts is not in the delta: read at the head, not reviewed.

Should-fix 1: fixed

The false sentence ("the remedy is a change to the package, not to the environment") is gone. Its replacement names the runtime upgrade for a package ahead of the runtime, so the passage no longer contradicts the AHEAD sentence lower in the same comment. The 422 ground is now stated as "the same body never succeeds on this runtime", which is the handshake jsdoc's own ground (lines 151 to 157) without the absolute.

Each sentence checked

Against checkProtocolCompat (lines 505 to 574) and ProtocolIncompatibleError (lines 179 to 188) at the head.

  • "the manifest is well-formed, but it declares a range this runtime can never satisfy, so the same body never succeeds on this runtime." True. checkProtocolCompat is pure: its verdict depends only on the manifest's declared range and protocolVersion (lines 509 to 520). The same manifest on the same runtime reaches incompatible every time. "On this runtime" scopes the claim correctly, so it does not collide with the runtime-upgrade remedy that follows.
  • "The remedy is a different body (migrated metadata, or a build for this runtime's protocol), or, for a package ahead of the runtime, a runtime upgrade, which is a deployment change, not environment state." True, arm by arm:
    • migrated metadata: the default arm, Run: objectstack migrate meta [--from N] (lines 538 to 540, 550), and the second half of the below-floor arm (lines 547 to 549).
    • a build for this runtime's protocol: named by the AHEAD arm (line 543) and the below-floor arm (line 547).
    • a runtime upgrade, for a package ahead only: Upgrade the runtime to protocol N appears only under ahead (lines 541 to 543).
    • "a deployment change, not environment state": consistent with the jsdoc's use of 409 for state "where resubmitting the same body could succeed later" (lines 155 to 157), and with the ledger's own CONCURRENT_UPDATE example.
  • "It matches this package's own METADATA_SCHEMA_INVALID. It is not 409, which this ledger keeps for refusals from environment state (CONCURRENT_UPDATE)." Words unchanged, rewrapped only. status and statusCode are 422 (lines 181 to 182).
  • "The two HTTP doors that reach the throw, POST /api/v1/packages and (since fix(cloud-connection): install-local runs the ADR-0087 D1 protocol handshake and refuses with the packages door answer (422) #21805)": words unchanged, rewrapped only.

Did anything else move

No. The word-level diff shows exactly the replaced clause plus comment-marker reflow on four following lines. No schema, .describe(), type, export, ledger row or package key changed. The rest of the comment (migrateCommand cases, the two 16 literals) is byte-identical to the reviewed head.

Findings

No must-fix. No should-fix.

  1. nit. "It matches this package's own METADATA_SCHEMA_INVALID" has lost its near antecedent. "It" meant the 422 answer; it now follows a sentence whose last noun is the runtime upgrade. A reader recovers it from "It is not 409" one sentence on. "The status matches" would be exact.
  2. nit. A || union can make a runtime upgrade work for a package the code does not class as ahead. ^17 || ^19 on an 18 runtime targets 17 (declaredTargetMajor takes the lowest alternative, lines 451 to 462), so the message offers --from 17 and no upgrade, though a move to 19 would also admit it. The comment's "for a package ahead of the runtime" is not false for that case, and it describes what the message names. Noted, no change asked.

Prior nits 2 and 3 (6898175107) are outside the delta and stand as recorded.

Gates

Check-runs on 27ef04d0d2: 68 runs, all completed. 57 success, 11 skipped, 0 failure, 0 cancelled or timed out. Skipped: 18.x upgrade harness (opt-in), Borrowed queue verdict, Build Docs, Dogfood Regression Gate (matrix shard), Dogfood Verify CLI, Lint UI, Packed-tarball smoke (opt-in), Queue verdict, Schedule gate, Temporal Conformance (live PG + MySQL), UI Published Artifacts: opt-in, queue-only or path-filtered. Green on the head, among others: Check Changeset, Lint & Repo Gates, Lint · docs & code guards, Lint · repo & tooling gates, Spec property liveness, Type Check · source gates, TypeScript Type Check, Test Core (8/8), Test UI (16/16). Nothing run locally.

Implemented-by: claude/area-A5-33618
Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Review — PASS (delta)

Head-sha: 27ef04d0d25349fdfef0a9a8c2fd1cca2adb882a
Reviewer: review-a (areas S1 + S3) · read 2026-11-15T17:45Z · delta dcda950e..27ef04d0: 922eb56d (the reworded sentence) and 27ef04d0 (rewrap). It touches one file, error-code-ledger.zod.ts, and only comment lines (+8/−5).
Implemented-by: session_01QsR2jTEivi2wogPpeo3xd5 (area S3 dispatch) · Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM; the contract face by an isolated sub-agent at CONTRACT_REVIEW_TIER
Prior verdict: PASS 6898184206 (should-fix 1 owed before landing)

Should-fix 1: fixed. The 422 ground now reads: the same body never succeeds on this runtime; the remedy is a different body, or, for a package ahead of the runtime, a runtime upgrade, which is a deployment change rather than environment state. That agrees with the AHEAD arm's message and with the comment's own later sentence. The delta contract record is comment 6898629363 (PASS, Local-runs: none), and it checks each sentence against checkProtocolCompat / ProtocolIncompatibleError. No row, schema, type or export moved, so the earlier Clause-②: no, Metadata-protocol: none and patch changeset still hold.

Nits (no re-review needed)

  1. The record notes that "It matches this package's own METADATA_SCHEMA_INVALID" no longer sits right after the sentence its "It" refers to. It still reads correctly.

Gates: at review time 57 success, 11 skipped, none red, so every check is green. The PR can land.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

席位核对

ACCEPT and landing · area S3 · 2026-11-15T17:46Z · head 27ef04d0d25349fdfef0a9a8c2fd1cca2adb882a

Ready + auto-merge under the area S3 landing line (maintainer, project thread, 2026-11-15T11:06Z) and the pm-dispatch landing procedure (maintainer, 2026-11-15T15:56Z).


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 17:46
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43747945979 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (7/8) — 失败步骤: Run this shard's tests

    @objectstack/scenarios:test:  FAIL  test/runner/run-date.test.ts > every dated card, rebased onto each run date > run on 2028-02-28: today is the run date, every date moves as the card's rebase says, 
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/scenarios:test:  FAIL  test/runner/run-date.test.ts > every dated card, rebased onto each run date > run on 2028-02-29: today is the run date, every date moves as the card's rebase says, 
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/scenarios:test:  FAIL  test/runner/run-date.test.ts > every dated card, rebased onto each run date > run on 2028-03-31: today is the run date, every date moves as the card's rebase says, 
      ↳ 失败原因: @objectstack/scenarios:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 21 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Queue ejection · area S3 · 2026-11-15T19:13Z · head 27ef04d0

Queue build 43747945979 failed on @objectstack/scenarios test/runner/run-date.test.ts, which timed out at 5000ms. This PR does not touch packages/scenarios. The same signature is on the queue-flake anchor #34081, and its fix PR #34104 is open. A re-arm before that fix lands would only burn another queue round, so this PR goes back in the queue once #34104 is on main. The review and ACCEPT on this PR still hold at this head.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Re-arm · area S3 · 2026-11-15T23:13Z · head 1c403d0d7fb17e10a6c8de34eb48726e00698240

The run-date.test.ts flake that ejected this PR is fixed on main (#34104, anchor #34081). This head is a clean main merge of 27ef04d0 (relay pr_update_branch, since K was 45). The PR-side patch-id is the same before and after (a3f21ab5cb2b), so the review and ACCEPT on this PR carry. Checks at this head: 57 success, 11 skipped, none red. K is now 12. Ready + auto-merge under the area S3 landing line and the pm-dispatch landing procedure.


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit fb3d1ff Nov 15, 2026
68 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-A5-33618 branch November 15, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runtime/spec: OS_PROTOCOL_INCOMPATIBLE text leftovers after #33466 (ledger comment 'when present', checklist acceptance[1])

1 participant